﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WeFrame.Core.Model
{
    /// <summary>
    /// 站点配置实体类
    /// </summary>
    [Serializable]
    public class SiteConfigModel
    {
        public SiteConfigModel()
        { }

        private string webName = "";
        private string webUrl = "";
        private string webCompany = "";
        private string webAddress = "";
        private string webTel = "";
        private string webMail = "";
        private string webPath = "";

        private string emailSmtp = "";
        private int emailSsl = 0;
        private int emailPort = 25;
        private string emailFrom = "";
        private string emailUserName = "";
        private string emailPassword = "";
        private string emailNickName = "";

        private string filePath = "";
        private int fileSave = 1;
        private string fileExtension = "";
        private string videoExtension = "";
        private int attachSize = 0;
        private int videoSize = 0;
        private int imgSize = 0;
        private int imgMaxHeight = 0;
        private int imgMaxWidth = 0;
        private int thumbNailHeight = 0;
        private int thumbNailWidth = 0;



        #region 主站基本信息==================================
        /// <summary>
        /// 网站名称
        /// </summary>
        public string WebName
        {
            get { return webName; }
            set { webName = value; }
        }
        /// <summary>
        /// 网站域名
        /// </summary>
        public string WebUrl
        {
            get { return webUrl; }
            set { webUrl = value; }
        }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string WebCompany
        {
            get { return webCompany; }
            set { webCompany = value; }
        }
        /// <summary>
        /// 通讯地址
        /// </summary>
        public string WebAddress
        {
            get { return webAddress; }
            set { webAddress = value; }
        }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string WebTel
        {
            get { return webTel; }
            set { webTel = value; }
        }

        /// <summary>
        /// 管理员邮箱
        /// </summary>
        public string WebMail
        {
            get { return webMail; }
            set { webMail = value; }
        }
        /// <summary>
        /// 网站路径
        /// </summary>
        public string WebPath
        {
            get { return webPath; }
            set { webPath = value; }
        }

        #endregion



        #region 邮件发送设置==================================
        /// <summary>
        /// STMP服务器
        /// </summary>
        public string EmailSmtp
        {
            get { return emailSmtp; }
            set { emailSmtp = value; }
        }
        /// <summary>
        /// 是否启用SSL加密连接
        /// </summary>
        public int EmailSsl
        {
            get { return emailSsl; }
            set { emailSsl = value; }
        }
        /// <summary>
        /// SMTP端口
        /// </summary>
        public int EmailPort
        {
            get { return emailPort; }
            set { emailPort = value; }
        }
        /// <summary>
        /// 发件人地址
        /// </summary>
        public string EmailFrom
        {
            get { return emailFrom; }
            set { emailFrom = value; }
        }
        /// <summary>
        /// 邮箱账号
        /// </summary>
        public string EmailUserName
        {
            get { return emailUserName; }
            set { emailUserName = value; }
        }
        /// <summary>
        /// 邮箱密码
        /// </summary>
        public string EmailPassword
        {
            get { return emailPassword; }
            set { emailPassword = value; }
        }
        /// <summary>
        /// 发件人昵称
        /// </summary>
        public string EmailNickName
        {
            get { return emailNickName; }
            set { emailNickName = value; }
        }
        #endregion

        #region 文件上传设置==================================
        /// <summary>
        /// 附件上传目录
        /// </summary>
        public string FilePath
        {
            get { return filePath; }
            set { filePath = value; }
        }
        /// <summary>
        /// 附件保存方式
        /// </summary>
        public int FileSave
        {
            get { return fileSave; }
            set { fileSave = value; }
        }
        /// <summary>
        /// 附件上传类型
        /// </summary>
        public string FileExtension
        {
            get { return fileExtension; }
            set { fileExtension = value; }
        }
        /// <summary>
        /// 视频上传类型
        /// </summary>
        public string VideoExtension
        {
            get { return videoExtension; }
            set { videoExtension = value; }
        }
        /// <summary>
        /// 文件上传大小
        /// </summary>
        public int AttachSize
        {
            get { return attachSize; }
            set { attachSize = value; }
        }
        /// <summary>
        /// 视频上传大小
        /// </summary>
        public int VideoSize
        {
            get { return videoSize; }
            set { videoSize = value; }
        }
        /// <summary>
        /// 图片上传大小
        /// </summary>
        public int ImgSize
        {
            get { return imgSize; }
            set { imgSize = value; }
        }
        /// <summary>
        /// 图片最大高度(像素)
        /// </summary>
        public int ImgMaxHeight
        {
            get { return imgMaxHeight; }
            set { imgMaxHeight = value; }
        }
        /// <summary>
        /// 图片最大宽度(像素)
        /// </summary>
        public int ImgMaxWidth
        {
            get { return imgMaxWidth; }
            set { imgMaxWidth = value; }
        }
        /// <summary>
        /// 生成缩略图高度(像素)
        /// </summary>
        public int ThumbNailHeight
        {
            get { return thumbNailHeight; }
            set { thumbNailHeight = value; }
        }
        /// <summary>
        /// 生成缩略图宽度(像素)
        /// </summary>
        public int ThumbNailWidth
        {
            get { return thumbNailWidth; }
            set { thumbNailWidth = value; }
        }


        #endregion


    }
}
